
import java.util.HashMap;
import java.util.List;
import java.util.Arrays;
import java.util.Map;
import java.util.Scanner;
public class java07_01 {

    private static Map<String,
            List<String>> provinceToCities = new HashMap<>();
    static {

        provinceToCities.put("广东省", Arrays.asList("广州市", "深圳市", "珠海市"));
        provinceToCities.put("浙江省", Arrays.asList("杭州市", "宁波市", "温州市"));
        provinceToCities.put("云南省", Arrays.asList("昆明市","昭通市","玉溪市"));
        }
        public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.println("请选择省份：");
        String province = scanner.nextLine();
            List<String> cities = provinceToCities.getOrDefault(province, Arrays.asList("未找到对应的城市"));
            System.out.println("您选择的省份 " + province + " 包含以下城市：");
            for (String city : cities) {
                System.out.println(city);
            }
           Scanner ss= new Scanner(System.in);
            System.out.println("请选择城市");
            String pp =scanner.nextLine();
            List<String> es =   Arrays.asList("信息登录完毕");
            for (String ty :es){
                System.out.println(ty);
            }
            scanner.close();
    }


}
